package org.MyApi.API;

import org.apache.cxf.jaxrs.model.wadl.Description;
import org.iodocs.IoDocsDefaultInteger;
import org.iodocs.IoDocsRequired;

import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;

/**
 * User: Anjana D. Kulasinghe
 * Date: 9/26/13
 */

@Path("/resource")
public class MyHeaderApi {
    @GET
    public String query(
            @HeaderParam("My Header Parameter Name")
            @Description("My Header Parameter Description")
            @IoDocsRequired
            @IoDocsDefaultInteger(2)
            int headerParameter) {
        return "No is : " + headerParameter;
    }
}
